<html>
<head>
<title>facture upload</title>
</head>
<body>

<!-- <?php echo $error;?>
-->

<?php 

$ff=$four['records'];
$ee=$enga['records2'];
echo form_open_multipart('facture_ctr/do_upload');  
?>


<form method="POST"  >
<p>
<label> id facture</label> <input  type="text" name="id" size="20" /><br />
</p>

<p>
<label> id fournisseur  </label>
<select id="s1" class="arabic" name="fournisseur">
<?php

foreach ($ff as $row){
	
echo '<option value='.$row->id_fournisseur.'>'. $row->id_fournisseur . '</option>';
}
?>
</select>
</p>

<p>
<label> le montant </label><input type="text" name="montant" size="20" /><br />
</p>

<p>
<label> id engagement</label><select id="s2" class="arabic" name="engagement">
<?php
foreach ($ee as $row){
echo '<option value='.$row->id_engagement.'>'. $row->id_engagement . '</option>';
}
?>
</select>
</p>

<input type="file" name="userfile" size="20" />

<input type="submit" value="Envoyer" />

<br /><br />


</form>

</body>
</html>